package demo.vo
{
	import demo.events.DemoPlayerEvent;
	
	import flash.events.EventDispatcher;
	import flash.geom.Point;

	public class PlayerVO extends EventDispatcher
	{
		private var _playerName:String;
		private var _playerMoveSpeed:Number=0.15;//玩家移动速度
		private var _targetPoint:Point;
		
		public function PlayerVO()
		{
		}

		/**
		 *玩家称呼 
		 */		
		public function get playerName():String
		{
			return _playerName;
		}

		/**
		 *玩家称呼 
		 */	
		public function set playerName(value:String):void
		{
			_playerName = value;
		}

		/**
		 *玩家要行动至的目标点 
		 */
		public function get targetPoint():Point
		{
			return _targetPoint;
		}

		/**
		 *玩家要行动至的目标点 
		 */
		public function set targetPoint(value:Point):void
		{
			_targetPoint = value;
			dispatchEvent(new DemoPlayerEvent(DemoPlayerEvent.PLAYER_TARGET_POINT_CHANGE));
		}

		public function get playerMoveSpeed():Number
		{
			return _playerMoveSpeed;
		}

		public function set playerMoveSpeed(value:Number):void
		{
			_playerMoveSpeed = value;
		}

	}
}